package top.itpath.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.itpath.admin.dto.UserInfo;
import top.itpath.admin.entity.SysUser;

/**
 * @author zhaomengru
 * create by  2023/10/10 - 15:44
 */
public interface IUserService extends IService<SysUser> {

    /**
     * 注册
     *
     * @param user 用户
     * @return 注册后的用户
     */
    SysUser register(SysUser user);

    /**
     * 根据用户名查找用户
     *
     * @param username 用户名
     * @return 用户
     */
    SysUser findByUsername(String username);

    /**
     * 获取用户信息
     */
    UserInfo getUserInfo(Long userId);
}
